package adventure.placeable;

/**
 *
 * @author Michael Hanns
 *
 */
public class PlaceableImp implements Placeable, PlaceableEdit {

    private int id;
    private String name;
    private String description;
    private boolean visible;
    private boolean lightSource;

    public PlaceableImp() {
        id = 0;
        name = "invalid";
        description = "invalid";
        visible = false;
        lightSource = false;
    }

    public PlaceableImp(int id) {
        this.id = id;
        this.name = "";
        this.description = "";
        this.visible = true;
        this.lightSource = false;
    }

    public void setID(int id) {
        this.id = id;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void setDescription(String desc) {
        this.description = desc;
    }

    @Override
    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    @Override
    public void setLightSource(boolean source) {
        this.lightSource = source;
    }

    @Override
    public int getID() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public boolean isVisible() {
        return visible;
    }

    @Override
    public boolean isLightSource() {
        return lightSource;
    }

}
